package main

import (
	"6-17yk/common/grpc"
	"6-17yk/common/model/mysql"
	"6-17yk/common/model/redis"
	"6-17yk/common/nacos"
	"6-17yk/service/config"
	"6-17yk/service/internal"
	grpc2 "google.golang.org/grpc"
)

func main() {
	config.Init()
	nacos.NaCos()
	mysql.MysqlInit()
	redis.ExampleClient()
	nac := nacos.Config.Grpc
	grpc.RegisterGrpc(nac.Host, nac.Port, func(registrar grpc2.ServiceRegistrar) {
		internal.Register(registrar)
	})
}
